package project.meetemup.view.start;

import project.meetemup.R;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.view.View;

/**
 * View that shows the logo of the meetemup.
 * 
 * @since 19/05/2012
 * @author Thiago maciel Batista
 * 
 */
public class StartView extends View {		
	private Bitmap backgroundImage;
	private Resources resources;
	
	public StartView(Context context) {
		super(context);
		resources = context.getResources();
		backgroundImage = BitmapFactory.decodeResource(resources, R.drawable.logo);
		// TODO Auto-generated constructor stub
	}
	
	public void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		canvas.drawBitmap(backgroundImage, 0, 0, null);
	}
}
